export const PAGE_CODE = 'dcs-sales-marketingActivity';
import {PAGE} from '../constants';
export const formatExportExcelUrl = (id, code) => `/sales/print/reportexcel.html?id=${id}&name=MarketingActivity&prefix=${code}`;
export const formatExportPdfUrl = (id, code) => `/sales/print/report.html?id=${id}&name=MarketingActivity&prefix=${code}`;
//设置管理员权限
export const PERMISSION = {
    add: 'add',
    update: 'update',
    abandon: 'abandon',
    submit: 'submit',
    approve: 'approve',
    upload: 'upload',
    approveReport: 'approveReport',
    approveFee: 'approveFee',
    register: 'register',
    exportExcel: 'exportExcel',
    exportPdf: 'exportPdf',
    export: 'export'
};
//重置常量
export const DEFAULT_QUERY_OPTION = {
    marketDepartmentId: '',
    country: '',
    dealerId: '',
    brandId: '',
    code: '',
    name: '',
    currency: undefined,
    itemType: undefined,
    fundSource: undefined,
    date: [],
    createTime: [],
    status: [],
    pageIndex: PAGE.index,
    pageSize: 10,
    sortField: 'code',
    isDesc: true,
};
